export interface IUserInfo {    userName: string    password: string}export const useUserInfo = () => {    const getUserInfo = (): IUserInfo => {        const userInfo = localStorage.getItem('userInfo')        if (userInfo) {            return JSON.parse(userInfo)        }        return {            userName: '',            password: '',        }    }    const setUserInfo = (userInfo: IUserInfo): void => {        localStorage.setItem('userInfo', JSON.stringify(userInfo))    }    const clearUserInfo = (): void => {        localStorage.removeItem('userInfo')    }    return {        getUserInfo,        setUserInfo,        clearUserInfo    }}